package ${apiPackageName};

import ${domianPackageName}.${domain.className};
import com.platform.common.domain.result.ParameterDataStruct;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.pagehelper.PageInfo;

import java.util.List;

import static com.hzy.component.Component.FALLBACK;

/**
* ${(domain.comment)!} fallback
*
* @author: ${domain.author}
* @version: 1.0
* @datetime: ${domain.datetime}
*/
public class ${domain.className}ApiFallback implements ${domain.className}Api {
    @Override
    public ResultMessageStruct save(${domain.className} ${domain.lowerStartClassName}) {
        ResultMessageStruct resultStruct = new ResultMessageStruct();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultMessageStruct modify(${domain.className} ${domain.lowerStartClassName}) {
        ResultMessageStruct resultStruct = new ResultMessageStruct();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultMessageStruct remove(${domain.className} ${domain.lowerStartClassName}) {
        ResultMessageStruct resultStruct = new ResultMessageStruct();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultMessageStruct resort(${domain.className} ${domain.lowerStartClassName}) {
        ResultMessageStruct resultStruct = new ResultMessageStruct();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultDataStruct<${domain.className}> findById(${domain.className} ${domain.lowerStartClassName}) {
        ResultDataStruct<${domain.className}> resultStruct = new ResultDataStruct<>();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultDataStruct<List<${domain.className}>> find(${domain.className} ${domain.lowerStartClassName}) {
        ResultDataStruct<List<${domain.className}>> resultStruct = new ResultDataStruct<>();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }

    @Override
    public ResultDataStruct<PageInfo<${domain.className}>> findPage(ParameterDataStruct<${domain.className}> parameterDataStruct) {
        ResultDataStruct<PageInfo<${domain.className}>> resultStruct = new ResultDataStruct<>();
        resultStruct.setCode(FALLBACK);
        resultStruct.setMessage("服务接口已中断");
        return resultStruct;
    }
}
